/**
 * @description: ShopUser interface parameters
 */
export interface ShopUserParams {
  query?: string;
  pagenum: number;
  pagesize: number;
  id?: number;
}

export interface QueryParams {
  id: number | any;
  username: string;
}

export interface SingleUserParams {
  id: number;
  email?: string;
  mobile?: string;
}

export interface GetShopUserModel {
  total: number;
  pagenum: number;
  users: object[];
}

export interface GetSingleUserModel {
  id: number;
  username: string;
  rid: number;
  mobile: string;
  email: string;
}

export interface PaginationModel {
  pagenum: number;
  pagesize: number;
  total: number;
}

export interface AddShopUserParams {
  username: string;
  password: string;
  email?: string;
  mobile?: string;
}

export interface UpdateUserState {
  uId: number;
  type: boolean;
}

export interface UpdateUserRole {
  id: number;
  rid: number;
}
